import Layout from '../../views/layout/Layout'

export default {
  name: 'monitor',
  path: '/monitor',
  redirect: '/monitor/index',
  component: Layout,
  meta: {title: '健康监测', icon: 'form', roles: ['system', 'admin']},
  children: [
{
    path: 'indexPage',
    name: 'indexPage',
    component: () => import('@/views/modules/monitor/indexPage/index'),
    meta: {title: '设备总览', icon: '数据看板', roles: ['system', 'admin']}
  },
    {
      path: 'temperaturePage',
      name: 'temperaturePage',
      component: () => import('@/views/modules/monitor/temperaturePage/index'),
      meta: {title: '温度监测', icon: '数据看板', roles: ['system', 'admin']},
    },
    {
      path: 'strainPage',
      name: 'strainPage',
      component: () => import('@/views/modules/monitor/strainPage/index'),
      meta: {title: '应力监测', icon: '数据看板', roles: ['system', 'admin']}
    },
    {
      path: 'vibrationPage',
      name: 'vibrationPage',
      component: () => import('@/views/modules/monitor/vibrationPage/index'),
      meta: {title: '振动监测', icon: '数据看板', roles: ['system', 'admin']}
    },
    {
      path: 'slopePage',
      name: 'slopePage',
      component: () => import('@/views/modules/monitor/slopePage/index'),
      meta: {title: '倾斜监测', icon: '数据看板', roles: ['system', 'admin']}
    },
    {
      path: 'testPage',
      name: 'testPage',
      meta: {title: 'test', icon: '数据看板', roles: ['system', 'admin'], children:[
        {
          path: 'slopePage',
          name: 'slopePage',
          component: () => import('@/views/modules/monitor/slopePage/index'),
          meta: {title: '倾斜监测', icon: '数据看板', roles: ['system', 'admin']}
        }
      ]
      }
    }
  ]
}

